Last Updated 10/28/2022
In this section you will learn how to plot the graph of a function defined by an expression. Other topics covered include: combining the graphs of several expressions into a single plot, plotting points, and combining different plot structures into a single picture.
Let us use the plot command to plot the graph of for .
Notice that Sage scales the y-axis automatically, choosing a y-scale that shows the entire graph corresponding to the specified domain.
You can override automatic y-scaling by specifying a range for y as well as x. On the next box we have limited the y-range to the interval [-10,30].
Try this! Plot the graph of for . Limited the y-range to the interval [-15,5]. Use red as the color of the graph by inserting the additional option color='red'.